import http from '@/libs/http'
// 获取所有用户
export const userListApi = (data) => {
	return http({
		url: `/users/userList`,
		data,
	})
}
// 查询用户信息
export const userDetailApi = (data) => {
	return http({
		url: `/users/userDetail`,
		data,
	})
}
// 编辑用户
export const editUserApi = (data) => {
	return http({
		url: `/users/editUser`,
		data,
		method: "POST",
	})
}

// 获取所有角色
export const roleSelectApi = (data) => {
	return http({
		url: `/role/roleSelect`,
		data,
	})
}